package com.example.club_mvvm.http_hilt.mall_api.model.request

import com.google.gson.Gson
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody
import okhttp3.RequestBody.Companion.toRequestBody


/**
 * @author yaotianxue
 * @description
 * @date 2025/1/13
 */
data class AdInfoRequestModel(val adType:String){
    fun toBody():RequestBody{
        val str = Gson().toJson(this)
        val mediaType = "application/json;charset=utf.8".toMediaType()
        return str.toRequestBody(mediaType)
    }
}

